<jsp:directive.page import="org.biojava.services.das.registry.DasRegistrySql" />
<jsp:directive.page import="org.biojava.dasobert.dasregistry.DasSource" />
<jsp:directive.page import="java.util.List" />
<jsp:directive.page import="org.springframework.beans.factory.BeanFactory"/>
<jsp:directive.page import="org.springframework.context.support.ClassPathXmlApplicationContext"/>

<% String title="Deleted Servers";
   String header = title;
%>

<%@ include file="sangerheader.jsp" %>

<%@page import="org.biojava.services.das.dao.CourseManager"%>
<div id="normalcontent">
<div class="contentarea">

<h3>Removed Sources</h4>
<div id="contentarea">
These sources have been removed as they were either not serving data or non of the responses were valid for <%=DasRegistrySql.ARCHIVE_TIME %> days or more.
If you wish to gain access to this data again and the server is not serving data or is invalid please email the data provider to ask them to re-instate the DAS server. Note that some may already have been re-registered, to check you can search for the url in the search box above.
</div>
<% BeanFactory ctx=(new ClassPathXmlApplicationContext("SpringDAO.xml"));
DasRegistrySql registry=(DasRegistrySql)ctx.getBean("registryBean");

List<DasSource> sources=registry.listArchivedSources();
%>
<em>Number of Archived Sources=<%=sources.size()%></em>

<div id="contentarea">

<%@ include file="sangertablestart.jsp"%>
<tr class="row2" valign="top"><td>Old Id</td><td>URL</td><td>Admin Email</td><td>Description</td><td>Registered Date</td><td>Last Date Valid</td><td>Helper URL</td></tr><%
for(DasSource ds:sources){
%> 
<tr class="row1" valign="top">
<td><%=ds.getId()%></td>
<td><%= ds.getUrl()%></td>
<td><%=ds.getAdminemail()%></td>
		<td><%=ds.getDescription()%></td>
		<td><%=ds.getRegisterDate()%></td>
		<td><%=ds.getLeaseDate()%></td>
		<td><%=ds.getHelperurl()%></td>
</tr><%} %>
<%@ include file="sangertableend.jsp" %>
</div>
</div>
</div>
<%@ include file="sangerfooter.jsp" %>
